package com.enjoy.ioc.initialize;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class B {
    @Bean(initMethod = "init")
    public A a(){
        return new A();
    }
}
